package cn.coco.jf.fw.admin.model;

import cn.coco.jf.fw.admin.config.consts.SysConsts;

import com.jfinal.plugin.activerecord.Model;

public class DictIntModel extends Model<DictIntModel>{
    private static final long serialVersionUID = 1L;

    public static DictIntModel dao = new DictIntModel().use(SysConsts.DATA_SOURCE_NAME_MYSQL);

    public static DictIntModel newInstance(){
        return new DictIntModel().use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    }

    public DictIntModel(){
        use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    }
    
    private Integer code;
    private String codeName;

    public Integer getCode() {
        return get("code");
    }

    public void setCode(Integer code) {
        set("code", code);
    }

    public String getCodeName() {
        return get("codeName");
    }

    public void setCodeName(String codeName) {
        set("codeName", codeName);
    }
    
    
}
